package com.itheima.demo01;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.io.IOException;

public class CommonsIoDemo01 {
    public static void main(String[] args) throws IOException {
        //使用commons io 工具包 操作文件

        //复制文件
     /*   File src = new File("E:\\Java\\day17\\","index.html");
        File dest = new File("E:\\Java\\day17\\","copy.txt");
        FileUtils.copyFile(src,dest);*/
        //复制文件夹
        File src = new File("aaa");
        File dest = new File("bbb");
        FileUtils.copyDirectory(src,dest);

    }
}
